
//
//  WayPoints.m
//  qulvyou
//
//  Created by mmyy on 15/10/20.
//  Copyright (c) 2015年 mmyy. All rights reserved.
//

#import "WayPoints.h"

@implementation WayPoints

+(instancetype)WayPointsWithDic:(NSDictionary *)dict
{
    WayPoints *points = [[WayPoints alloc] init];
    points.photo = dict[@"photo"];
    points.text = dict[@"text"];
    points.province = dict[@"province"];
    points.local_time = dict[@"local_time"];
    if (![[dict objectForKey:@"photo_info"] isKindOfClass:[NSNull class]]) {
        points.h = [[dict objectForKey:@"photo_info"] objectForKey:@"h"];
        points.w = [[dict objectForKey:@"photo_info"] objectForKey:@"w"];
    }
    
    return points;

}

@end
